package com.ryt.tuangou.mapper;

import com.ryt.tuangou.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserMapper {

    @Select("select * from tb_user where user_name =#{userName}")
    User getByUserName(String userName);

    @Insert("insert into tb_user(user_name,user_pwd,create_time,update_time) values (#{userName},#{userPwd},#{createTime},#{updateTime})")
    Boolean saveUser(User user);
}
